package com.yida.gwj.expend.outside.domain.dto;

import com.yida.gwj.common.domain.GwjBaseFile;
import com.yida.gwj.expend.outside.domain.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 *
 * @author liangp
 * @date 2023-02-08
 */

@ApiModel(description = "公维金资金申请业务提交数据到内网")
public class SecondExamineDTO {

    @ApiModelProperty(value = "公维金资金申请业务信息信息")
    private GwjMaintenanceFundsBusiness maintenanceFundsBusiness;

    @ApiModelProperty(value = "公维金资金申请业务楼栋信息")
    private List<GwjMaintenanceFundsBusinessBuild> maintenanceFundsBusinessBuildList;

    @ApiModelProperty(value = "公维金资金申请业务社区信息")
    private GwjMaintenanceFundsBusinessCommunity maintenanceFundsBusinessCommunity;

    @ApiModelProperty(value = "公维金资金申请业务房屋信息")
    private List<GwjMaintenanceFundsBusinessHouse> maintenanceFundsBusinessHouseList;

    @ApiModelProperty(value = "公维金资金申请业务基础信息")
    private GwjMaintenanceFundsBusinessInfo maintenanceFundsBusinessInfo;

    @ApiModelProperty(value = "公维金资金申请业务业主信息")
    private List<GwjMaintenanceFundsBusinessOwner> maintenanceFundsBusinessOwnerList;

    @ApiModelProperty(value = "上传材料列表")
    private List<GwjBaseFile> baseFileList;

    public List<GwjBaseFile> getBaseFileList() {
        return baseFileList;
    }

    public void setBaseFileList(List<GwjBaseFile> baseFileList) {
        this.baseFileList = baseFileList;
    }

    public GwjMaintenanceFundsBusiness getMaintenanceFundsBusiness() {
        return maintenanceFundsBusiness;
    }

    public void setMaintenanceFundsBusiness(GwjMaintenanceFundsBusiness maintenanceFundsBusiness) {
        this.maintenanceFundsBusiness = maintenanceFundsBusiness;
    }

    public List<GwjMaintenanceFundsBusinessBuild> getMaintenanceFundsBusinessBuildList() {
        return maintenanceFundsBusinessBuildList;
    }

    public void setMaintenanceFundsBusinessBuildList(List<GwjMaintenanceFundsBusinessBuild> maintenanceFundsBusinessBuildList) {
        this.maintenanceFundsBusinessBuildList = maintenanceFundsBusinessBuildList;
    }

    public GwjMaintenanceFundsBusinessCommunity getMaintenanceFundsBusinessCommunity() {
        return maintenanceFundsBusinessCommunity;
    }

    public void setMaintenanceFundsBusinessCommunity(GwjMaintenanceFundsBusinessCommunity maintenanceFundsBusinessCommunity) {
        this.maintenanceFundsBusinessCommunity = maintenanceFundsBusinessCommunity;
    }

    public List<GwjMaintenanceFundsBusinessHouse> getMaintenanceFundsBusinessHouseList() {
        return maintenanceFundsBusinessHouseList;
    }

    public void setMaintenanceFundsBusinessHouseList(List<GwjMaintenanceFundsBusinessHouse> maintenanceFundsBusinessHouseList) {
        this.maintenanceFundsBusinessHouseList = maintenanceFundsBusinessHouseList;
    }

    public GwjMaintenanceFundsBusinessInfo getMaintenanceFundsBusinessInfo() {
        return maintenanceFundsBusinessInfo;
    }

    public void setMaintenanceFundsBusinessInfo(GwjMaintenanceFundsBusinessInfo maintenanceFundsBusinessInfo) {
        this.maintenanceFundsBusinessInfo = maintenanceFundsBusinessInfo;
    }

    public List<GwjMaintenanceFundsBusinessOwner> getMaintenanceFundsBusinessOwnerList() {
        return maintenanceFundsBusinessOwnerList;
    }

    public void setMaintenanceFundsBusinessOwnerList(List<GwjMaintenanceFundsBusinessOwner> maintenanceFundsBusinessOwnerList) {
        this.maintenanceFundsBusinessOwnerList = maintenanceFundsBusinessOwnerList;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SubmitIntranetRequest{");
        sb.append("maintenanceFundsBusiness=").append(maintenanceFundsBusiness);
        sb.append(", maintenanceFundsBusinessBuildList=").append(maintenanceFundsBusinessBuildList);
        sb.append(", maintenanceFundsBusinessCommunity=").append(maintenanceFundsBusinessCommunity);
        sb.append(", maintenanceFundsBusinessHouseList=").append(maintenanceFundsBusinessHouseList);
        sb.append(", maintenanceFundsBusinessInfo=").append(maintenanceFundsBusinessInfo);
        sb.append(", maintenanceFundsBusinessOwnerList=").append(maintenanceFundsBusinessOwnerList);
        sb.append('}');
        return sb.toString();
    }

    public void checkNull() {
        //if (ObjectUtil.isNull(maintenanceFundsBusiness)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.SECOND_EXAMINE, "GwjMaintenanceFundsBusiness为空");
        //}
        //if (ObjectUtil.notEqual(maintenanceFundsBusiness.getStatus(), BusinessStatusInternetEnum.NORMAL.getCode())) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "外网数据状态不对");
        //}
        //if (CollectionUtil.isEmpty(baseFileList)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "GwjBaseFile列表为空");
        //}
        //if (CollectionUtil.isEmpty(maintenanceFundsBusinessBuildList)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "GwjMaintenanceFundsBusinessBuild列表为空");
        //}
        //if (ObjectUtil.isNull(maintenanceFundsBusinessCommunity)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "GwjMaintenanceFundsBusinessCommunity为空");
        //}
        //if (ObjectUtil.isNull(maintenanceFundsBusinessInfo)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "GwjMaintenanceFundsBusinessInfo为空");
        //}
        //if (CollectionUtil.isEmpty(maintenanceFundsBusinessHouseList)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "GwjMaintenanceFundsBusinessHouse列表为空");
        //}
        //if (CollectionUtil.isEmpty(maintenanceFundsBusinessOwnerList)) {
        //    throw new ServiceException(MaintenanceFundsErrorEnum.INTRANET_SAVE_FAL, "GwjMaintenanceFundsBusinessOwner列表为空");
        //}
    }


}
